package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @Author: x1aolone
 * @Date: 2020/5/9 19:13
 */
@Data
@TableName("user")
public class UserDO{

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(type = IdType.AUTO) // 自增
    @TableField("id")
    private Integer id;

    /**
     *
     */
    @TableField("name")
    private String name;

    /**
     *
     */
    @TableField("type")
    private String type;

    /**
     *
     */
    @TableField("password")
    private String password;

    /**
     *
     */
    @TableField("store_id")
    private Integer storeId;

    /**
     *
     */
    @TableField("service_id")
    private Integer serviceId;


    @TableField("warehouse_id")
    private Integer warehouseId;

    /**
     *
     */
    public Integer getId() {
        return id;
    }

    /**
     *
     */
    public String getName() {
        return name;
    }

}
